##Generic Arrow/Arrow Bundle: "victim" Event
execute if entity @n[tag=generic_arrow,tag=generic_bow.arrow.hit_temp,type=arrow] run function dab:system/generic_arrow/victim

#run command
function dab:system/generic_bow/run/command/hit_entity_victim with entity @n[tag=generic_bow.arrow.hit_temp,type=arrow] weapon.components."minecraft:custom_data".run

tag @n[tag=generic_bow.arrow.hit_temp,type=arrow] remove generic_bow.arrow.hit_temp